

import React from 'react';
import {
    View,
    Text,
    Image,
    StyleSheet,
   
} from 'react-native';


function EmptyData({iconImg=null,titleStr='暂时没有相关的数据'}){   

    return(
            <View style={[styles.contain]}>
                {/* { */}
                  <Image source={require('./src/empty.png')} style={{width:120,height:120}} resizeMode="contain"/>
                <Text style={{fontSize:16,color:"#9b9b9b",marginTop:10}}>{titleStr}</Text>
            </View>
    )
}

var styles = StyleSheet.create({
   
    contain: {
        // backgroundColor:'white',
        width:screenWidth,
        height:screenHeight-65-header_Height,
        alignItems:'center',
        justifyContent:"center"
    },  
});



export {
    EmptyData   
}